<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
 <script src="/spring-merchant/js/bootstrap/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/spring-merchant/css/bootstrap/bootstrap.min.css" >
    <link rel="stylesheet" href="/spring-merchant/css/bootstrap/bootstrap-theme.min.css">
    <script src="/spring-merchant/js/bootstrap/bootstrap.min.js"></script>
	
	<script src="/spring-merchant/js/dist/sweetalert-dev.js"></script>
    <link href="/spring-merchant/css/dist/sweetalert.css" rel="stylesheet">
    <script src="/spring-merchant/js/dist/sweetalert.min.js"></script>
    <style type="text/css">
        .container {
            border: 1px solid #00AAEE;
            width: 60%;
            margin: 50px auto 0;
            padding: 50px;
        }

        td {
            padding-top: 30px;
        }

        .title {
            margin: 100px auto 0;
            width: 60%;
        }
    </style>
</head>
<body>
<!-- 模态框 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" style="margin-top:50px">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
            </div>
            <div class="modal-body" style="margin: 30px;text-align: center;font-weight: lighter"></div>
            <div class="modal-footer">
                <button type="button" id="cancel" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="submit" class="btn btn-primary" id="modal_login">确定</button>
            </div>
        </div>
    </div>
</div>

<div>
    <div class="title">
        <h1>状态查询</h1>
    </div>
    <div class="container">
        <table style="width: 100%;">
            <tr>
                <th>名称</th>
                <th>地址</th>
                <th>头像</th>
                <th>状态</th>
                <th>消息</th>
                <th>操作</th>
            </tr>
            <tr>
                <td>${user.name}</td>
                <td>${user.address}</td>
                <td><img src="http://ZHA-ITA077-w7/${user.avatarPath}" style="width: 100px; height: 100px"/>
                </td>
                <td id="status">${statusInfo}</td>
                <td id="message">${message}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/views/foods">刷新</a>
                    <a href="${pageContext.request.contextPath}/views/register/info" class="reRegist_btn fresh_btn">注册</a>
                </td>
            </tr>
        </table>
    </div>
</div>
	<script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert-dev.js"></script>
    <script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert-dev.min.js"></script>
    <link href="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js"></script>
 <script type="text/javascript" src="/spring-merchant/js/websocket.js"></script>
</body>
</html>